package com.web.activiti.utils;

import com.web.activiti.pojo.TreeMenu;
import com.web.activiti.service.SysService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.util.List;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:spring/applicationContext.xml"})
public class test {
    @Autowired
    private SysService sysService;
    @Test
    public void fun(){
        List<TreeMenu> list=sysService.loadTreeMenu();
    }
}
